package com.laosg.framework.fhir.springboot.service.impl;

import com.laosg.framework.fhir.springboot.service.PatientService;
import org.hl7.fhir.dstu3.model.*;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * Created by kaimin on 4/7/2019.
 * time : 21:52
 */
@Service
public class PatientServiceImpl implements PatientService{
    public Patient getById() {
        Patient patient = new Patient();
        patient.addName(new HumanName().addGiven("ruan"));
        patient.setActive(true);
        patient.setId("123");
        patient.setMeta(new Meta().setLastUpdatedElement(new InstantType(new Date())));
        patient.setMeta(new Meta().setLastUpdated(new Date()));
        patient.setIdElement(new IdType("123"));
        return patient;
    }
}
